const auth = async (ctx, next) => {
  if (ctx.sessionId) {
    next()
  } else {
    ctx.body = '请登录'
  }
}

module.exports = auth

